/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const boardRouter = {
  path: '/board',
  component: Layout,
  redirect: '/board/custom',
  name: 'Board',
  meta: {
    roles: ['editor', 'admin'],
    title: '视图管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/board/list-board'),
      name: 'ListBoard',
      meta: {
        title: '我的视图', noCache: true, affix: true
      }
    },
    {
      path: 'custom',
      component: () => import('@/views/board/custom-board'),
      name: 'CustomBoard',
      meta: {
        title: '添加视图', noCache: true, affix: true
      }
    }
  ]
}

export default boardRouter
